/*
 * @Descripttion:
 * @Author: caijj
 * @Date: 2020-11-24 16:59:47
 * @LastEditors: caijj
 * @LastEditTime: 2020-12-07 14:22:08
 */
import request from '@/utils/request';

export function userList(data) {
  return request({
    url: '/api/user',
    method: 'get',
    params: data
  });
}

export function updateStatus(data) {
  return request({
    url: '/api/user/v1/updateStatus',
    method: 'get',
    params: data
  });
}

// 添加用户
export function add(data) {
  return request({
    url: '/api/user/v1/add',
    method: 'post',
    data: data
  });
}

// 修改用户
export function updateUser(data) {
  return request({
    url: '/api/user/v1/updateUser',
    method: 'post',
    data: data
  });
}

// 全部店铺
export function getStoreMenu(data) {
  return request({
    url: '/api/store/v1/getStoreMenu',
    method: 'get'
  });
}

// 初始化密码
export function initPassword(data) {
  return request({
    url: '/api/user/v1/initPassword',
    method: 'get',
    params: data
  });
}

// 通过用户id查询营业员
export function getUser(data) {
  return request({
    url: '/api/user/v1/getUser',
    method: 'get',
    params: data
  });
}

